/**
 * <copyright>
 * </copyright>
 *

 */
package org.xtext.example.cr.cR.impl;

import java.util.Collection;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

import org.eclipse.emf.ecore.util.EObjectResolvingEList;

import org.xtext.example.cr.cR.Archive;
import org.xtext.example.cr.cR.ArrayElement;
import org.xtext.example.cr.cR.Assignment;
import org.xtext.example.cr.cR.CRPackage;
import org.xtext.example.cr.cR.CalcCR;
import org.xtext.example.cr.cR.CalcMean;
import org.xtext.example.cr.cR.VarDec;
import org.xtext.example.cr.cR.Variable;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Assignment</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.xtext.example.cr.cR.impl.AssignmentImpl#getDec <em>Dec</em>}</li>
 *   <li>{@link org.xtext.example.cr.cR.impl.AssignmentImpl#getVariables <em>Variables</em>}</li>
 *   <li>{@link org.xtext.example.cr.cR.impl.AssignmentImpl#getArrayElement <em>Array Element</em>}</li>
 *   <li>{@link org.xtext.example.cr.cR.impl.AssignmentImpl#getCalcCR <em>Calc CR</em>}</li>
 *   <li>{@link org.xtext.example.cr.cR.impl.AssignmentImpl#getCalcMean <em>Calc Mean</em>}</li>
 *   <li>{@link org.xtext.example.cr.cR.impl.AssignmentImpl#getNumber <em>Number</em>}</li>
 *   <li>{@link org.xtext.example.cr.cR.impl.AssignmentImpl#getArchive <em>Archive</em>}</li>
 *   <li>{@link org.xtext.example.cr.cR.impl.AssignmentImpl#getVariable <em>Variable</em>}</li>
 *   <li>{@link org.xtext.example.cr.cR.impl.AssignmentImpl#getAssignedAE <em>Assigned AE</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class AssignmentImpl extends MinimalEObjectImpl.Container implements Assignment
{
  /**
   * The cached value of the '{@link #getDec() <em>Dec</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getDec()
   * @generated
   * @ordered
   */
  protected VarDec dec;

  /**
   * The cached value of the '{@link #getVariables() <em>Variables</em>}' reference list.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getVariables()
   * @generated
   * @ordered
   */
  protected EList<Variable> variables;

  /**
   * The cached value of the '{@link #getArrayElement() <em>Array Element</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getArrayElement()
   * @generated
   * @ordered
   */
  protected ArrayElement arrayElement;

  /**
   * The cached value of the '{@link #getCalcCR() <em>Calc CR</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getCalcCR()
   * @generated
   * @ordered
   */
  protected CalcCR calcCR;

  /**
   * The cached value of the '{@link #getCalcMean() <em>Calc Mean</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getCalcMean()
   * @generated
   * @ordered
   */
  protected CalcMean calcMean;

  /**
   * The cached value of the '{@link #getNumber() <em>Number</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getNumber()
   * @generated
   * @ordered
   */
  protected org.xtext.example.cr.cR.Number number;

  /**
   * The cached value of the '{@link #getArchive() <em>Archive</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getArchive()
   * @generated
   * @ordered
   */
  protected Archive archive;

  /**
   * The cached value of the '{@link #getVariable() <em>Variable</em>}' reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getVariable()
   * @generated
   * @ordered
   */
  protected Variable variable;

  /**
   * The cached value of the '{@link #getAssignedAE() <em>Assigned AE</em>}' containment reference.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #getAssignedAE()
   * @generated
   * @ordered
   */
  protected ArrayElement assignedAE;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  protected AssignmentImpl()
  {
    super();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  protected EClass eStaticClass()
  {
    return CRPackage.Literals.ASSIGNMENT;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public VarDec getDec()
  {
    return dec;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetDec(VarDec newDec, NotificationChain msgs)
  {
    VarDec oldDec = dec;
    dec = newDec;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__DEC, oldDec, newDec);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setDec(VarDec newDec)
  {
    if (newDec != dec)
    {
      NotificationChain msgs = null;
      if (dec != null)
        msgs = ((InternalEObject)dec).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__DEC, null, msgs);
      if (newDec != null)
        msgs = ((InternalEObject)newDec).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__DEC, null, msgs);
      msgs = basicSetDec(newDec, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__DEC, newDec, newDec));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EList<Variable> getVariables()
  {
    if (variables == null)
    {
      variables = new EObjectResolvingEList<Variable>(Variable.class, this, CRPackage.ASSIGNMENT__VARIABLES);
    }
    return variables;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ArrayElement getArrayElement()
  {
    return arrayElement;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetArrayElement(ArrayElement newArrayElement, NotificationChain msgs)
  {
    ArrayElement oldArrayElement = arrayElement;
    arrayElement = newArrayElement;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__ARRAY_ELEMENT, oldArrayElement, newArrayElement);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setArrayElement(ArrayElement newArrayElement)
  {
    if (newArrayElement != arrayElement)
    {
      NotificationChain msgs = null;
      if (arrayElement != null)
        msgs = ((InternalEObject)arrayElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__ARRAY_ELEMENT, null, msgs);
      if (newArrayElement != null)
        msgs = ((InternalEObject)newArrayElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__ARRAY_ELEMENT, null, msgs);
      msgs = basicSetArrayElement(newArrayElement, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__ARRAY_ELEMENT, newArrayElement, newArrayElement));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public CalcCR getCalcCR()
  {
    return calcCR;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetCalcCR(CalcCR newCalcCR, NotificationChain msgs)
  {
    CalcCR oldCalcCR = calcCR;
    calcCR = newCalcCR;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__CALC_CR, oldCalcCR, newCalcCR);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setCalcCR(CalcCR newCalcCR)
  {
    if (newCalcCR != calcCR)
    {
      NotificationChain msgs = null;
      if (calcCR != null)
        msgs = ((InternalEObject)calcCR).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__CALC_CR, null, msgs);
      if (newCalcCR != null)
        msgs = ((InternalEObject)newCalcCR).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__CALC_CR, null, msgs);
      msgs = basicSetCalcCR(newCalcCR, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__CALC_CR, newCalcCR, newCalcCR));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public CalcMean getCalcMean()
  {
    return calcMean;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetCalcMean(CalcMean newCalcMean, NotificationChain msgs)
  {
    CalcMean oldCalcMean = calcMean;
    calcMean = newCalcMean;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__CALC_MEAN, oldCalcMean, newCalcMean);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setCalcMean(CalcMean newCalcMean)
  {
    if (newCalcMean != calcMean)
    {
      NotificationChain msgs = null;
      if (calcMean != null)
        msgs = ((InternalEObject)calcMean).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__CALC_MEAN, null, msgs);
      if (newCalcMean != null)
        msgs = ((InternalEObject)newCalcMean).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__CALC_MEAN, null, msgs);
      msgs = basicSetCalcMean(newCalcMean, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__CALC_MEAN, newCalcMean, newCalcMean));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public org.xtext.example.cr.cR.Number getNumber()
  {
    return number;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetNumber(org.xtext.example.cr.cR.Number newNumber, NotificationChain msgs)
  {
    org.xtext.example.cr.cR.Number oldNumber = number;
    number = newNumber;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__NUMBER, oldNumber, newNumber);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setNumber(org.xtext.example.cr.cR.Number newNumber)
  {
    if (newNumber != number)
    {
      NotificationChain msgs = null;
      if (number != null)
        msgs = ((InternalEObject)number).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__NUMBER, null, msgs);
      if (newNumber != null)
        msgs = ((InternalEObject)newNumber).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__NUMBER, null, msgs);
      msgs = basicSetNumber(newNumber, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__NUMBER, newNumber, newNumber));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Archive getArchive()
  {
    return archive;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetArchive(Archive newArchive, NotificationChain msgs)
  {
    Archive oldArchive = archive;
    archive = newArchive;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__ARCHIVE, oldArchive, newArchive);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setArchive(Archive newArchive)
  {
    if (newArchive != archive)
    {
      NotificationChain msgs = null;
      if (archive != null)
        msgs = ((InternalEObject)archive).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__ARCHIVE, null, msgs);
      if (newArchive != null)
        msgs = ((InternalEObject)newArchive).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__ARCHIVE, null, msgs);
      msgs = basicSetArchive(newArchive, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__ARCHIVE, newArchive, newArchive));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Variable getVariable()
  {
    if (variable != null && variable.eIsProxy())
    {
      InternalEObject oldVariable = (InternalEObject)variable;
      variable = (Variable)eResolveProxy(oldVariable);
      if (variable != oldVariable)
      {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, CRPackage.ASSIGNMENT__VARIABLE, oldVariable, variable));
      }
    }
    return variable;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Variable basicGetVariable()
  {
    return variable;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setVariable(Variable newVariable)
  {
    Variable oldVariable = variable;
    variable = newVariable;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__VARIABLE, oldVariable, variable));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ArrayElement getAssignedAE()
  {
    return assignedAE;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetAssignedAE(ArrayElement newAssignedAE, NotificationChain msgs)
  {
    ArrayElement oldAssignedAE = assignedAE;
    assignedAE = newAssignedAE;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__ASSIGNED_AE, oldAssignedAE, newAssignedAE);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setAssignedAE(ArrayElement newAssignedAE)
  {
    if (newAssignedAE != assignedAE)
    {
      NotificationChain msgs = null;
      if (assignedAE != null)
        msgs = ((InternalEObject)assignedAE).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__ASSIGNED_AE, null, msgs);
      if (newAssignedAE != null)
        msgs = ((InternalEObject)newAssignedAE).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CRPackage.ASSIGNMENT__ASSIGNED_AE, null, msgs);
      msgs = basicSetAssignedAE(newAssignedAE, msgs);
      if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CRPackage.ASSIGNMENT__ASSIGNED_AE, newAssignedAE, newAssignedAE));
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
      case CRPackage.ASSIGNMENT__DEC:
        return basicSetDec(null, msgs);
      case CRPackage.ASSIGNMENT__ARRAY_ELEMENT:
        return basicSetArrayElement(null, msgs);
      case CRPackage.ASSIGNMENT__CALC_CR:
        return basicSetCalcCR(null, msgs);
      case CRPackage.ASSIGNMENT__CALC_MEAN:
        return basicSetCalcMean(null, msgs);
      case CRPackage.ASSIGNMENT__NUMBER:
        return basicSetNumber(null, msgs);
      case CRPackage.ASSIGNMENT__ARCHIVE:
        return basicSetArchive(null, msgs);
      case CRPackage.ASSIGNMENT__ASSIGNED_AE:
        return basicSetAssignedAE(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
      case CRPackage.ASSIGNMENT__DEC:
        return getDec();
      case CRPackage.ASSIGNMENT__VARIABLES:
        return getVariables();
      case CRPackage.ASSIGNMENT__ARRAY_ELEMENT:
        return getArrayElement();
      case CRPackage.ASSIGNMENT__CALC_CR:
        return getCalcCR();
      case CRPackage.ASSIGNMENT__CALC_MEAN:
        return getCalcMean();
      case CRPackage.ASSIGNMENT__NUMBER:
        return getNumber();
      case CRPackage.ASSIGNMENT__ARCHIVE:
        return getArchive();
      case CRPackage.ASSIGNMENT__VARIABLE:
        if (resolve) return getVariable();
        return basicGetVariable();
      case CRPackage.ASSIGNMENT__ASSIGNED_AE:
        return getAssignedAE();
    }
    return super.eGet(featureID, resolve, coreType);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @SuppressWarnings("unchecked")
  @Override
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
      case CRPackage.ASSIGNMENT__DEC:
        setDec((VarDec)newValue);
        return;
      case CRPackage.ASSIGNMENT__VARIABLES:
        getVariables().clear();
        getVariables().addAll((Collection<? extends Variable>)newValue);
        return;
      case CRPackage.ASSIGNMENT__ARRAY_ELEMENT:
        setArrayElement((ArrayElement)newValue);
        return;
      case CRPackage.ASSIGNMENT__CALC_CR:
        setCalcCR((CalcCR)newValue);
        return;
      case CRPackage.ASSIGNMENT__CALC_MEAN:
        setCalcMean((CalcMean)newValue);
        return;
      case CRPackage.ASSIGNMENT__NUMBER:
        setNumber((org.xtext.example.cr.cR.Number)newValue);
        return;
      case CRPackage.ASSIGNMENT__ARCHIVE:
        setArchive((Archive)newValue);
        return;
      case CRPackage.ASSIGNMENT__VARIABLE:
        setVariable((Variable)newValue);
        return;
      case CRPackage.ASSIGNMENT__ASSIGNED_AE:
        setAssignedAE((ArrayElement)newValue);
        return;
    }
    super.eSet(featureID, newValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
      case CRPackage.ASSIGNMENT__DEC:
        setDec((VarDec)null);
        return;
      case CRPackage.ASSIGNMENT__VARIABLES:
        getVariables().clear();
        return;
      case CRPackage.ASSIGNMENT__ARRAY_ELEMENT:
        setArrayElement((ArrayElement)null);
        return;
      case CRPackage.ASSIGNMENT__CALC_CR:
        setCalcCR((CalcCR)null);
        return;
      case CRPackage.ASSIGNMENT__CALC_MEAN:
        setCalcMean((CalcMean)null);
        return;
      case CRPackage.ASSIGNMENT__NUMBER:
        setNumber((org.xtext.example.cr.cR.Number)null);
        return;
      case CRPackage.ASSIGNMENT__ARCHIVE:
        setArchive((Archive)null);
        return;
      case CRPackage.ASSIGNMENT__VARIABLE:
        setVariable((Variable)null);
        return;
      case CRPackage.ASSIGNMENT__ASSIGNED_AE:
        setAssignedAE((ArrayElement)null);
        return;
    }
    super.eUnset(featureID);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
      case CRPackage.ASSIGNMENT__DEC:
        return dec != null;
      case CRPackage.ASSIGNMENT__VARIABLES:
        return variables != null && !variables.isEmpty();
      case CRPackage.ASSIGNMENT__ARRAY_ELEMENT:
        return arrayElement != null;
      case CRPackage.ASSIGNMENT__CALC_CR:
        return calcCR != null;
      case CRPackage.ASSIGNMENT__CALC_MEAN:
        return calcMean != null;
      case CRPackage.ASSIGNMENT__NUMBER:
        return number != null;
      case CRPackage.ASSIGNMENT__ARCHIVE:
        return archive != null;
      case CRPackage.ASSIGNMENT__VARIABLE:
        return variable != null;
      case CRPackage.ASSIGNMENT__ASSIGNED_AE:
        return assignedAE != null;
    }
    return super.eIsSet(featureID);
  }

} //AssignmentImpl
